# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=w_scan2
pkgver=1.0.15
pkgrel=0
pkgdesc="Universal ATSC and DVB blind scanner"
url="https://github.com/stefantalpalaru/w_scan2"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No test suite
replaces="w_scan"
makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/stefantalpalaru/w_scan2/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	./configure \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
bec567ca5b160083754e7ba31bfe625f16efe71916a00c800557598e0229361c629285017c495d2e50a37e1366d8b00780b4b0e9b081ac20e4f13382b4becf3f  w_scan2-1.0.15.tar.gz
"
